<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
	<div ng-controller="logController">
		<div ng-path></div>

		<div>
			<form class="form-inline">
				<div class="form-group form-group-sm">
					<input type="text" class="form-control" ng-model="lm.log.username"
						placeholder="用户名" />
				</div>
				<div class="form-group form-group-sm">
					<input type="text" class="form-control dateTimePicker"
						id="dateTimePicker" ng-model="lm.log.beginTime" placeholder="开始时间" />
				</div>
				<div class="form-group form-group-sm">
					<input type="text" class="form-control dateTimePicker"
						id="dateTimePicker" ng-model="lm.log.endTime" placeholder="结束时间" />
				</div>
				<div class="form-group form-group-sm">
					<button type="button" class="btn btn-primary btn-sm"
						ng-click="lm.query()">查 询</button>
					<button type="button" class="btn btn-default btn-sm"
						ng-click="lm.clear()">清 理</button>
				</div>
			</form>
		</div>

		<div>
			<table class="table table-hover">
				<thead>
					<tr>
						<td width="10%">序号</td>
						<td width="20%">操作人</td>
						<td width="20%">操作时间</td>
						<td width="50%">描述</td>
					</tr>
				</thead>

				<tbody>
					<tr ng-repeat="log in lm.pager.list">
						<td>{{$index + 1}}</td>
						<td>{{log.username}}</td>
						<td>{{log.oprTime}}</td>
						<td>{{log.description}}</td>
					</tr>
					<tr align="center" ng-show="lm.pager.list.length == 0">
						<td colspan="4">没有用户信息</td>
					</tr>
				</tbody>
			</table>
			<div>
				<uib-pagination total-items="lm.pager.total"
					ng-model="lm.pager.pageNum" max-size="5" class="pagination-sm"
					ng-change="lm.query()" boundary-link-numbers="true" rotate="false"></uib-pagination>
			</div>
		</div>
	</div>
</body>
</html>